<!--
 * Copyright 2019 ia-cloud project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<script type="text/html" data-template-name="PLC MC config">

  <!-- Name -->
  <div class="form-row">
    <label for="node-config-input-name"><i class="fa fa-tag"></i> <span data-i18n="ia-cloud-fds.plc-mc-protocol.config.name" /></label>
    <input type="text" id="node-config-input-name" data-i18n="[placeholder]ia-cloud-fds.plc-mc-protocol.config.name">
  </div>
  <!-- Host -->
  <div class="form-row">
    <label for="node-config-input-host"><i class="fa fa-tag"></i> <span data-i18n="ia-cloud-fds.plc-mc-protocol.config.host" /></label>
    <input type="text" id="node-config-input-host" data-i18n="[placeholder]ia-cloud-fds.plc-mc-protocol.config.host">
  </div>
  <!-- Port -->
  <div class="form-row">
    <label for="node-config-input-port"><i class="fa fa-tag"></i> <span data-i18n="ia-cloud-fds.plc-mc-protocol.config.port" /></label>
    <input type="text" id="node-config-input-port" data-i18n="[placeholder]ia-cloud-fds.plc-mc-protocol.config.port">
  </div>

</script>

<script type="text/html" data-help-name="PLC MC config">



</script>

<script type="text/javascript">

  RED.nodes.registerType('PLC MC config', {
    category: 'config',
    color: 'rgb(231, 180, 100)',
    defaults: {
      name: { value: '' },
      host: { value: '' },
      port: { value: 5011 },
    },
    label: function() {
        return this.name;
    },
  });

</script>
